﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SharePoint;

namespace Umbrella.Whs.SharePoint
{
    public class WebsiteUser
    {
        public string Login
        {
            get; 
            private set;
        }

        public string Name
        {
            get;
            private set;
        }

        public string Email
        {
            get;
            private set;
        }

        public string Notes
        {
            get; 
            private set;
        }

        internal WebsiteUser(SPUser user)
        {
           if (user == null)
               throw new ArgumentNullException("user");

            this.Login = user.LoginName;
            this.Name = user.Name;
            this.Email = user.Email;
            this.Notes = user.Notes;
        }
    }
}
